#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "shape.h"
#include "point.h"

class Triangle : public Shape
{
public:
    Triangle();
    Triangle(Point p0, Point p1, Point p2);

    bool ptIn(const Point& pt);

    double distance(const Point& pt);

    virtual void draw();

protected:
    Point vertex[3];
};

#endif // TRIANGLE_H
